<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:composition template="/templates/templateAluno.xhtml">
	<ui:define name="conteudo">
		<div style="float:left; width:170px">
			<ui:include src="/templates/aulaAluno.xhtml"/>
		</div>
		<div style="float:left; width:770px">
		<h:panelGrid columns="2">
			<h:outputText value="Nome: " />
			<h:outputText value="#{mBAulaAluno.aula.sala.nome}" />
			<h:outputText value="Horário: " />
			<h:outputText value="#{mBAulaAluno.aula.horario}" />
		</h:panelGrid>
		<p:panel header="Faltas">
			<h:form id="diario">
			<p:dataTable style="width:200px;" emptyMessage="As notas ainda não foram lançadas" value="#{mBAulaAluno.diario}" var="diario">
				<p:column headerText="Data">
					<h:outputText value="#{diario.dataFormatada}" />
				</p:column>
				<p:column headerText="Faltas">
					<h:outputText value="#{diario.faltas}" />
				</p:column>
				<f:facet name="footer">
					Total: <h:outputText value="#{mBAulaAluno.totalFaltas}" />
				</f:facet>
				
			</p:dataTable>
		</h:form>
		</p:panel>
		</div>
		<div style="clear:both"></div>
	</ui:define>
</ui:composition>
</html>